page {
  height: 100%;
  overflow: hidden;
  background: #f5f5f5;
  padding-top: 120rpx;
}

.category-container {
  padding: 10rpx 20rpx;
  display: flex;
  height: calc(~"100% - 120rpx");
  padding-left: 0;
  padding-bottom: 140rpx;

  .cate {
    flex: 3;
    background-color: #fff;
    height: 100%;

    .cate-item {
      height: 80rpx;
      line-height: 80rpx;
      color: #656565;
      font-size: 28rpx;
      text-align: center;
      position: relative;

      &.is-last {
        margin-bottom: 0;
      }

      &.active {
        text {
          border-bottom: 2px solid #02A7F9;
          color: #000;
        }
      }
    }


  }

  .list {
    height: 100%;
    flex: 8;
    padding-left: 20rpx;
    padding-bottom: 20rpx;

    .cate-item {
      margin-bottom: 15rpx;

      &.is-last {
        margin-bottom: 0;
      }
    }

    .ad {
      height: 200rpx;
      margin-bottom: 20rpx;

      image {
        height: 100%;
        border-radius: 20rpx;
      }
    }

    .sort {
      display: flex;
      font-size: 30rpx;
      margin-bottom: 20rpx;

      .recommend {
        font-weight: 600;
      }

      .action {
        margin-left: auto;
        display: flex;
        color: #676767;

        .iconfont {
          color: #999;
          font-size: 38rpx;
          vertical-align: middle;
        }

        .price {
          margin-right: 32rpx;
        }
      }
    }
  }

  scroll-view {
    height: 100%;

    &.cates {
      height: calc(~"100% - 266rpx");
    }
  }
}

.cart {
  position: fixed;
  width: 100%;
  bottom: 0;
  padding: 25rpx 30rpx;
  background-color: #ffffff;
  z-index: 102;
}